<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>  

<jsp:include page="helpers/layout_header.jsp"></jsp:include>

<%-- body --%>
<jsp:include page="helpers/header_admin.jsp" />

<div id="div-cadastro-evento" class="row">
	<form:form id="form-cadastro" class="custom" action="finalizarCompraTicket" method="post" modelAttribute="ticket">
		<form:hidden path="evento.codigo"/>
		<h1>Comprar Ticket</h1>
		<div class="row collapse">
			<div class="large-6 small-12 columns">
				<label for="evento">Evento</label>
				<form:input type="text" path="evento.nome" value="" disabled="true"/>
			</div>
		</div>
		<div class="row collapse">
			<div class="large-6 small-12 columns">
				<label for="qtdTickets">Quantidade de Tickets</label>
				<form:input type="text" path="qtdTickets" value="" />
			</div>
		</div>
		<div class="row collapse">
			<div class="large-6 small-12 columns">
				<label for="meiaEntrada">Meia Entrada?</label>
				<form:select type="text" path="meiaEntrada" value="" >
					<form:option value="S">Sim</form:option>
					<form:option value="N">Não</form:option>
				</form:select>
			</div>
		</div>
		<div class="row">
			<div class="large-6 small-6">
				<button id="bt-cadastro" type="submit" class="button radius right">Comprar</button>
			</div>
			<div class="large-6 small-6">
				<a href="/listarEventos" class="button radius alert right">Cancelar</a>
			</div>
		</div>
	</form:form>
</div>

<div class="row mensagens">
	<div data-alert="" class="alert-box secondary round processando" style="display: none;">
	  Aguarde enquanto sua requisição é processada
	</div>
	<div data-alert="" class="alert-box success round sucesso" style="display: none;">
		Sucesso.
	</div>
	<div data-alert="" class="alert-box alert round erro" style="display: none;">
	  
	</div>
</div>

<%-- /body --%>

<jsp:include page="helpers/layout_footer.jsp"></jsp:include>